# 每天进步的力量

A = pow(1.01, 365)
print("{:.2f}".format(A))


def finaldayUp(df):
    dayup = 1
    for i in range(365):
        if i % 7 in [6, 0]:
            dayup = dayup * 0.99
        else:
            dayup = dayup * (1 + df)
    return dayup


x = 0.001
while finaldayUp(x) < A:
    x = x + 0.001

print("工作日的努力参数是：{:.3f}".format(x))


